﻿using HLStock.MyType;

namespace HLStock.Model
{
    [Serializable, MyTableName("T_STOCKRECORD")]
    public class StockRecordModel:BaseModel
    {
        public string OrderCode { get; set; }
        public string QrCode { get; set; }
        public string ProductCode { get; set; }
        public string ProductName { get; set; }
        [MyForeign(typeof(PlaceModel),nameof(PlaceModel.PlaceCode))]
        public string PlaceId { get; set; }
        public int Qty { get; set; }
        public StockType Type { get; set; }
        public string PlaceCode { get; set; }
        public int OnHand { get; set; }
        public string SrcRecord { get; set; }
    }
    public enum StockType 
    { 
        In,Out
    }
}
